package org.dtrd.modules.food.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.food.entity.bean.RecipeDetail;
import org.dtrd.modules.food.entity.bean.RecipeListInfo;
import org.dtrd.modules.food.entity.po.DtrdExtEmsYwRecipes;
import org.dtrd.modules.food.entity.request.RecipePageRequest;

import java.util.List;

/**
 * <p>
 * 食谱服务类
 * </p>
 *
 * @author QR
 * @since 2021-12-08
 */
public interface IDtrdExtEmsYwRecipesService extends IService<DtrdExtEmsYwRecipes> {

    List<RecipeDetail> getRecipesList();

    RecipeDetail getRecipes(Integer dataId);

    boolean saveOrUpdateRecipes(RecipeDetail dto);

    boolean removeRecipes(Integer dataId);

    IPage<RecipeListInfo> pageRecipe(RecipePageRequest request);
}
